package com.hevs.samplewebapp.client.screenComponents;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;

/**
 * Goal: create a screen to give main information to the doctor,
 * like an on-board manual(RT*M).
 * 
 * @author Lionel Rey
 * Date: 10.05.2012
 *
 */
public class ScreenComponentDoctorInformation extends Composite{
	/**
	 * Main panel layout.
	 */
	private HorizontalPanel hPanel = new HorizontalPanel();

	/**
	 * Flextable that contains the whole information text.
	 */
	private FlexTable info = new FlexTable();

	/**
	 * Constructor for the doctor manual
	 */
	public ScreenComponentDoctorInformation(){
		// Fill in the information.
		info.setWidget(0, 0, new HTML("<h2>Doctor information</h2>"));

		info.setWidget(2, 0, new HTML("This panel has been created for the use only of a doctor.<br>" +
				"As a doctor you should not temper with the data unless a <br>" +
				"patient has specifically asked for it"));

		info.setWidget(3, 0, new HTML("<h2>Warning</h2>"
				+ "<ul><li>Access to, and use of, this site and the content thereof is at the risk of the user.</li>" +
				"<li>You are granted a non-transferable, non-exclusive license to use this service</li>" +
				"<li>Do not do anything which could reasonably be expected to damage, disable,<br> overburden, or materially impair the " +
				"service or this website generally</li>" +
				"<li>The account holder is ultimately responsible for administering and safeguarding<br> any passwords created to " +
				"control access to the users' accounts. Please keep any password issued to you secure.</li></ul>"));

		// Set the layout.
		hPanel.add(info);
		
		// Init the widget
		initWidget(hPanel);
	}
}
